package com.zy.dao;

import java.util.List;

import com.zy.entity.Customer;
import com.zy.entity.CustomerEx;
import com.zy.entity.Dict;

public interface CustomerDao {
	//客户dao
	//查询客户级别
	public List<Dict> getDict();
	
	//查询总条数
	public int getTotalCount();
	
	//分页查询客户信息
	public List<Customer> getCustomers(int m,int n);
	
	//根据id查询客户
	public Customer getCustomer(int cid);
	
	//修改
	public void updateCustomer(Customer customer);
	
	//添加客户
	public void insertCustomer(Customer customer);
	
	//删除客户
	public void deleteCustomer(int cid);
	
	//查询所有客户信息
	public List<Customer> selectAllCustomer();
	
	public List<Customer> queryByName(String name);
	
	//根据客户名字和客户级别查询客户
	public List<Customer> getCustomernl(String custname,int custlevel);
	
	//根据客户级别和客户来源查询客户
	public List<Customer> getCustomerls(int custlevel,String custsource);
	
	//根据客户名字和客户级别和客户来源查询客户
	public List<Customer> getCustomernls(String custname,int custlevel,String custsource);
	
	//根据客户级别查询客户
	public List<Customer> getCustomernll(int custlevel);
	
	//获取客户来源
	public List<CustomerEx> getCS();
	
	//获取客户级别
	public List<CustomerEx> getCP();
	

}
